Test on copy constructor