added ui tests for template and template units