added  test for alerts