fix logging outputting in tests