Stubs and mocks for XHR should be done using the `dojo/request` registry. There should not be code within the application just for testing purposes.