In production environments the base components for unit testing are not installed. This is taken care of by generating the resulting software component in a way that unit test objects and scenario object are not loaded into such environments.
This mechanism does not take care of component dependencies. All imported components are marked as prerequisites. If a component is used in unit tests and scenarios only, it is recommended to specify this component as optional. The result is a software component that can be loaded, even if some or all of the optional dependencies are not present.