added a unit test to test copy nscopying protocol