Fix unittests and add new GitRepo.branches property