Tests for CiviMail helpers

Change-Id: I5fe7f34a7ec36fe513daccb50646c7ee721f225e
Merge "Tests for CiviMail helpers"