Pass tests for sliceMatrix.