Allow for getXHR to be injected