Fix LoggerTest

fixes #5561