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