[first draft] enhanced version of SqlPredicateTest

Missing features:
- fully configurable customPredicate
- needs more types of customPredicate

Waiting your review.
You could rename the variable to `useCustomPredicate` to improve the readability and get rid of the `== true` instead.