Added unit test for logging. Now it's failing