added test class for AlarmGenerator