Move tests inside clone.rs and fixed copyright headers.