Refactor tests to mock the HttpServicePool