fix unit test after switching LoggerContext to stateless