add rangeOfValue: method, and test it.