refactor git methods in tests
add method for listing remote branches in a repo