Added clone function and test for cloning provisioning template.

This block can be flattened.

```python
if not clone:
    raise UINoSuchElementError(...)
...
```