test for update a file and commit