[first draft] enhanced version of SqlPredicateTest

Missing features:
- fully configurable customPredicate
- needs more types of customPredicate

Waiting your review.
All the duplicated `search.started();` and `search.done();` could be replaced by an enclosing measurement, since the same probe is used everywhere. WDYT @all?