test for index