Added test for sending templated email