added unit testing for alert counter engine