tests: refactored testIndex to reduce redundancy and skipping
bugfix, api: fixed API for IndexStore.construct_resultSetItem

Final argument (rsiType) has a default, and so is optional.
tests: added tests for constructing ResultSetItems from Indexes