Test added to MatrixSort