fix the threshold tests