need to mock the http request for testing