test case for varying range