BugFix: 2.4 mock components with config

At the moment, anything in `Controller::$components` is lost as soon as you mock a component. This makes using testAction with any controller where `Controller::$components` contains settings pertinent to the test - confusing and difficult (as you must not mock the component, to get the relevant config).