test a file.