get identifier value of an entity. test register with registering a new entity.
fix getClassMetaData accepts class name (not object).
test registering an object retrieved from database via Doctrine2.