Test and implement copy constructor for stack