Add regression test for line_pos_iterator.