[libgit2] attempt to fix tests
[libgit2] implement load_refs