allTerms = index.getRange(ArrayBytes.EMPTY_BYTES, null, null, false, false, revNum);
assertTrue(allTerms.skipTo(doc1));
assertEquals(0, allTerms.term().compareTo(t1));
assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
assertEquals(0, allTerms.term().compareTo(t3));
assertEquals(NextStatus.NEXT_DOC, allTerms.nextTerm());
s = index.getRange(t0, t3, t4, true, true, revNum);
assertNull(s);
s = index.getRange(t0, t3, t4, true, false, revNum);