Index creation and test