Added support of withGroups for shouldNot.