Fix "alarm in measurement" test