maxValue threshold tests