Updated few template tests to use api's to create OS and template

I think will be more intuitive if s/template/template_name