updated template tests with factory
removed create_template fn
small update in ddt test
seven negative tests
Merge pull request #1058 from sghai/template

Boundary tests for templates