Added tests for alerts