Fixed the template directory in the test.
Replaced the swig-email-templates dependency with swig-emails. It's faster and more stable because it relies on cheerio instead of jsdom.