fix tests
correct implementation
describe valid ranges
1.0.1