Add extension method for testing that all components can be resolved.