unit-tests: move HTTPClient to separate class