Test merge() lifetime