change indices to indices_
added indexCopy
Update test.lua
Update test.lua
amended argcheck
resolving merge conflicts in PR