test_mailbox: improve agent.py coverage