Added DocCode test: "can restore an entity with temp key over an entity w/ same temp key"