fix tests and pdf creation for new profile implementation in entities

resolves #48