adjust usage of mocks to changes in MiniTest