Porting duplication insertion tests.