add tests for error cases for new APIs
rename test_get_repo_commit -> test_get_repo_commit_works
rm unnecessary code from diff tests; bad auto-merge?