Improved testing for Alerts

A more rigorous set of unit tests for the alerts functionality.