Added tests for ElementDefinitions and AttributeDefinitions.