testcase for device alarms