fix predicate test