Add allow_uncaught_exception to onerror tests so that they run properly.