It’s on American to verify that you have tested. It’s possible that Immigration could ask for proof, but I’ve never heard of it being done.