testing alerting an error