unit tests for alert tasks