extra test cases for sparse matrices