Fixed test on index deletion