fix isOverlap and add indecies test