A test for committing a file.