add test cases for matrix_row_iterator