tested canHappen() of Alarm.