Improved pygit2 test_repository copatibility