Improving the tests for mailers

Following the changes made in 29fa170a24e061.
Also included ":host => Site.current.domain" when getting URLs in mail
views.

refs #371
Add tests for the worker Invitations

refs #371, refs #790