Added clone function and test for cloning provisioning template.

I think is better to change