So, I would test that these fire in the correct order, by instead making it a list of alarms and iterating by index.
Then, checking that the name is the right one makes more sense.
(otherwise expectedAlarms[alarm.name].name is a little useless)