Logging in tests fixed