util test for file