more tests for indexes to overcome getIndexes() mysteries (related to issue #366)