Add tests for commit_model