tests with ranges