refactor DomainClassUnitTestMixin