test updating a file