Added test for send email task