Add a test of copying semantics.