Added tests for GenMatRowIndColIndMatSize