bugfix: use test() instead of validate() when evaluating match