added merge() unit tests