XHR test bug fixes - second attempt

XHR test bug fixes - with cleaned up history (hopefully) because I'm not that fluent in Git operations and https://github.com/w3c/web-platform-tests/pull/103 has a branch whose history became so messy Critic stopped updating its review..