merge_entity and ut checking in