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