test: assert xhr errors
onerror: init
onerror: init
onerror: add tests