Try using:
wprintf(L"%s", "test");
since wprintf takes a string of characters as input
Edit : based on the fact that the behavior of% s and% S changes when used in wprintf, about which:
wprintf("%s", L"test");
% s wprintf , L "test".
"L" , wprintf :
int wprintf(char *fmt, ...)