Optional filter callback. When set, only matches for which test(from, to, state) returns true are included.
test(from, to, state)