Mocking http client for test