Restore test deliveries for ActionMailer.

Similar to #15544.

cc @senny