Change tests that assume that array[ind] is an array