modified testcase for email API