xhr: Wrote tests for xhr.js

- [ ] @davestein
you can have this under `util/xhr` and do a nested describe