test for alarm