Add tests to ComponentDef