Adding test for window.onerror arity