Add test for throw if no "error" event listener