The date in the notifications table should always be the most recent date for the template. Removed the template_type param for the query as well. Simplified the tests.
TokenAlgorithmError