Fix logger file in tests