dependencies needed in the mocks are optional
Mixing injected and free parameters for mocks, fixes #15