Fix order test for end_row