Pass the unit test for createFile();