Threshold_Test function

The test for the number of thresholds.