Added test of timeAlarm