added tests for copying