Unittest for recursive merge.