improve coverage of indexItems()