Added tests to test template errorchecks