Refactored AlarmTest to its own file