refactoring ElementDefinitionTest