Add tests for predicates