Fixes #62: Make mocked constructor compatible with parent constructor.