test array and arraycopy