update removeIndex test