static addCustom(name, rule) {
    Rule.TEST_FUNCTIONS[name] = rule;
    Rule.TEST_FUNCTIONS[name].optional = OPTIONAL;
  }
Add custom rule to the Rule class
@param {String} name the name of the rule
@param {Function} rule the validation function