Fixed usage of real logger in tests; removed unused field