ErrorHandlerTest: restore_error_handler() on assertion failure