check whether mailbox is empty at end of unit test