Fix tests to match git commands used