testing Clone() and sample