fix invalid invocation of GetBranches in test case