added CopyFile example in tests