fix intention of loop in test_copyto_permut
Merge pull request #5160 from bdkearns/master

fix intention of loop in test_copyto_permut