fixed test for changed index