Add extra test cases around parsing the remote branch name
More robust figuring out of origin branch name