Fixed specs by mocking the github api properly