added isThreshold unit tests and allowed negative in isScientific