Refactor the tests for GithubClient