added tests for alarms