added test cases for mailbox and join