Test $client->getRequestHandler() and $request->setBaseUrl()