test(ruleparser): adding regex tests