Testing merge algorithm.