Fixed test on deleteIndex