Unit test and debug RegexMatchingRule