Add tests for the top level exception handler