Refactor example tests to use a custom matcher
Move custom rule to it's own file (reuse).