unit test for Files