Add test with rollback of multiple indexes,

and delete the cursor in getNumIndexEntries