add unit test for create_email