Added Jasmine 'afterEach' to restore XHR