Add a test for resetIndexDeep().