Alarm class with tests.