Added tests for GenMatRowIndRangeColIndRange