test a file