adding test for csc and csr sparse matrix