fix test_uncaught_exception