Sparse matrix test cases