fix test for indices