String stmt = testPath + "/*[@" + propertyName1 + " < 1000]";
QueryResult result = qm.createQuery(stmt, Query.XPATH).execute();
for (int j = 0; j < INITIAL_NODE_NUM - i; j++) {
// skip to each node in the result
NodeIterator it = result.getNodes();
it.skip(j);
long propValue = it.nextNode().getProperty(propertyName1).getLong();
// expected = number of skipped nodes + number of deleted nodes
long expected = j + i;
assertEquals("Wrong node after skip()", expected, propValue);
}