better logging fro unit test