Implemented welcome email sending and added tests to email sending