Adding a method for clearing the XHR mocks