test modifying a file