Add unit test for array2