Prevent calling github API in tests

* Fix Github client (Isolate the API with mocks)