memccpy main + better testing