Test for bug 13075: XMLHttpRequest with failed authentication should set status to 401.

  1. Sync, no credentials:
  2. Sync, incorrect credentials:
  3. Async, no credentials:
  4. Async, incorrect credentials: