unit tests for alarms page