Added tests for templates