added tests for alarm history and alarm patch