Minor fixes in the test classes; preperation for test of
PersistentObjectType (Name is possible subject to changes).
Implementation of type-object pattern.
Some cleaning performed.