Testing model functions within a template.