better logging for unittests