CLOUDIFY-1900 upgraded templates tests and added tests for the new API.