wrote copyTo test
implemented copyTo