added functional tests
added functional test for creating email