Added CopyTo extension method and tests