add test for get_repo_commit()