added unit test for alert escalation