fixed http client factory unit tests