fixing indexCopy test thanks to @hycis