Implemented similar to connector/github/github_test.go
Enable testing by allowing overriding the API host name in tests