Do a better test to index.