fixes #2577 maintenance  implemented testNull() method and added check nullity condition on predicate classes

What if values is null?