add test for non-contiguous array