Test resource cloning

Allow the cloning of resources in test context; this clones the raw Json, updates the uuid to an arbritary new value, crates a resource and stores it in testJSON under the new uuid