Fixed TestRemoveGaps