upgrade test deps
cache compiled regexp in closure for predicate fns