better logging and comments in unittest