fix logging from unit tests