Adding tests for templates