Tests with an alarm