fix logging in unit tests