add test case for removeOverlapingIndeciesByPriority