Enable test_branchContainingRemote - broken by changes, needs work

Also removed the ugly adaptCliGitClone method, replacing it with the
more direct, and more clear "git.checkout()" call.