Add tests for predicate functions