added view and mailer tests