Fix use of double move with a copy constructor only used by testing code