Adding some optional parameters to the buildHttpClient ApiTestCase method.