[first draft] enhanced version of SqlPredicateTest

Missing features:
- fully configurable customPredicate
- needs more types of customPredicate

Waiting your review.
I don't understand this comment. What does it mean?