CompareOperatorAttribute: first working version with all UTs pass