fix testcase for GitRepository