Add test_raise_exception