Setup so joinHeaders optimization takes place when removeDups
Added builder tests stat confirm joinHeaders optimization.