Add unit tests for Array1D