Fixed email tests, added callback for email.sendEmail()