log during tests