XCOMMONS-455: The test framework mocking CM should mock a dependency only if it does not already exist in the CM
* fix tests