xhr: Wrote tests for xhr.js

- [ ] @davestein
english here :) `it('will not resolve after abort',`