Add tests for alerts