Fix ref used in first alarm_summary notification, and improve test