Add test on createFile