Add tests for commit with edit.