fixed the broken exception handler in test_bootstrap