added copy constructor and test for it