Switch to a mocking way of testing.