fix issue caused by StreamTestDefaultMailbox, and add logging