update tests to match changed file operations order