Add a test to catch row-major/col-major indexing problems