Fix #48; only allow positive thresholds
Prevent specs from generating invalid thresholds
Merge branch 'gh-48' into gh-47
Use Ruby 1.9 compatible lambda syntax