Service::createHttpClient() test and fix