Fixed usage of real logger in tests