duplicate array unit test