Refactor(testGet): Prevent extra request on polling
Refactor(testGet): Prevent extra request on polling

* Moved callback result checks to a function.
* Callback immediately on success or non-recoverable error.

fvdm/nodejs-gtmetrix