Fix assert arguments order to (expected, actual)
Test window.onerror handler