bug #534 add red test
bug #534 remove the automatic generateId() call in the entity cloning process