Add test for implicitly switching back to git master branch.