[NEW] Add tests on DefinitionCollection and DefinitionKey.