Add unit test for alerts spill-over bug