Fix test issues for multipart/form-data
Allow file:// URLs to resolve with the XHR client

File URLs do not have an http status code. We must introduce a delay in
resolution to allow the error handler to fire if needed. Previously,
requests for file:// URLs would fail to resolve.