Unit tests for alarms.