Improved the handling of alarm frequency checking
Added some tests for the Alarm class