Improved unit tests of template plugins