Bug fixes.
Alerts service tests.