fixed bug in predicate test