add test for file