Fix exception hook test to ensure that traceback isn't broken

(and fix exception).

Due to traceback being renamed, the code was broken. We added a test to
prevent this in the future.