Test for file