end test when window.onerror fixes #3