[test.c] fix bug in outfolder creation