Add a test against resource cloning