Fix in DeclarationImpl and DeclarationBuilderTest
Add tests for AbstractDiscoveryComponent