Even, even more alerts works.

Changed the way AlertManager.loads() works to hopefully make it less error prone.

Added alert tests to lib.tests. I know these are now being tested in various places but since setting up coverage/coveralls I am trying to plug some of the holes within the test suite.