Use FakeGit in tests