added tests for goodness of nec and suff conditions