More index tests.

More index testings, and separate tests on the index values to the index metadata.