add tests to create_file