Fix order dependency in testCreateIndexByName