Let's try if mocking fixes the intermittent failures of the unit test.