xhr: Wrote tests for xhr.js

- [ ] @davestein
Why is this expecting `foo = ['bar']`? Where is the array coming from?