Add a test of copying semantics.
Merge pull request #3 from robrix/test-copying-semantics

Add a test of copying semantics.