Fixed flaky test

Sometimes the order of the emails in `mail.outbox` would be reversed.