Configured mailer and added trusted_app tests