test case for file