Added test for GenMatNumRowsNumCols