fix the constructor for the mock.