Updated add-and-commit and added a create commit test