smart: when threshold is valid, also test for "less or equal"

When the threshold is 0, a value of 0 should hit the threshold.