added first test case for scanner provided range