CLC-1050 Use Rspec mocking instead of Minitest, to fix tests