Add a unit test for arrays.