Results 2 issues of Forest Beaver

Jest appears to be losing reference to the patched `http` and `https` libs when required inside a loop. Resolves https://github.com/nock/nock/issues/2383

Had a server crash with the trace: SyntaxError: Unexpected token H in JSON at position 0 https://github.com/AuthorizeNet/sdk-node/blob/aab2dac8bb057e5f245a8a52dea017f71e1a36e2/lib/apicontrollersbase.js#L102