fix isRange test case