Added tests for GenMatRowIndRange