fix the case when labelled_region.start_index is close to labelled_region.end_index

added some testcase derived from as2 regression tests