I think 'master' can't be expected here since the branch 'test' is already ahead of master when this test case is run (see setUp method) and branch 'a' is created off of 'test' and not 'master'.