Add test for file creation