test to modify a file