fix tests on action_mailer

Include appropriate helpers and use `assert_dom_equal` where applicable
Merge pull request #17204 from schneems/schneems/fix-am-tests-master

fix tests on action_mailer
Only include the needed assertions