adding tests for alerts