Add join opt merge tests