http client is being used outside of test environment