Added tests for XHR.
Merge pull request #1 from jussi-kalliokoski/xhr

XHR