Allow constructor arguments to be passed to a replaceByMock Mock

When we create mock and swap it out using replaceMyMock, the constructor was only called when creating the mock. With this PR, the constructor would be called when using the Mage factory to create a new instance if constructor arguments are passed to the Mage factory.