test for the index