Add tests for cloning objects with array and hash attributes

These tests demonstrate what should happen when a class with array/hash attributes is cloned.