test merge function.