fix(test): use memcpy instead of strncpy in tests

strcpy_s or strlcpy will be better, but anyway, I just want to
silence the stupid VS warnings.