Wrote all tests for GitHubBroker and fixed the bugs