switched to email-templates package, added test script