Adding tests for alerts