create a less integrative unit test by mocking the http client