Test to update a file