Correct ahead-behind tests

These were made to pass with the incorrect logic from libgit2, which has
since been corrected.