tests for mailbox