Fix bug: test will fail when alarm_on is true