Fix failing test (change the way reference to TestHttpClient is obtained)