Updated few tests to use apis to create OS and template

use api to create OS and template in update/remove tests

updated config_template tests to use api to create template