missing test: copy array to itself