added settings and structure for email
added test for construction