Added tests for ClassDefinitionResolver