Tested equals() for class Alarm.