add new unit test and additional debug info for overlap cases