test for file