Added trigger logic for state alerts. Comms state alert agent test.
IA are sa tests.