update email response bugfix
adding more test cases to improve the code coverage