correct testing of logger output