added test for git accessor for different branch

Fixed GitAccessor to checkout different branch.