Test for replaceByMock constructor

Ensure replaceByMock allows the constructor to be run whenever Magento would otherwise instantiate a model with a constructor.