Add a test for logging mode.