Added random test for non-contiguous data