fix flakey logger test