Do not flush log messages in tests