Factoring HTTP client for tests from variable into field for efficiency