Dependency management. Tests also for multiple class providers.