testing memory copying