Created and tested the index.