Test that the uncaught exception hook will immediately terminate the test and print the associated exception and stack trace.