Better test
Logging conditionally