Added exceptions to alerts to make them pass tests