Adds some Migrator#write_file tests