moved AlarmInfo into Common, added test