Added tests for TestInPlaceGenMatRowIndGenMat