Merge function testing