Fix broken tests by stubbing Github ref requests