Ensure url_for generates full url by default

By default `url_for` should generate a full URL when used in a mailer #16497. This PR adds tests that will verify this ability.