Test code for remove(i)