Fix tests of template tag