fixed RedirLogging for tests