Added some more tests for hysteresis threshold.