Update unit test for mocking the logger to keep messages off the console