Feature alarm tests

* fix alarm test assertEquals.