TODO: add unit tests for Ragios::NotifyJob -handle exceptions from notifiers
refactor and added unit tests for monitor notifications and get_monitor_events_by_state