Extract predicate functions from tests