Fix XHR tests in Chrome apps.