fixed bug in testLogging.