Improved test infrastructure to ensure the mock users are in
mongodb profiles in every test.

Adapted the email tests to new ActionsView infrastructure.