Added clone function and test for cloning provisioning template.

`format`