Unit test for arrays of length 1