Added tests and fixes for PersistenceMetaModelFacet