Add test cases for basic matrix manipulations (sparse matrix)