fix: listen on "onerror" too
tests: add error test
Release 1.0.1