Add XHR `responseType` tests

Closes #1006.