Add predicate validator unit test