Skip first and last element during counting down indices in remove test