You forgot to assign a value to Test. Test is just a pointer and not a struct. Add the folowing line after the wait(1) in your main function:

Test = malloc(sizeof(TEST));


Always learn from history, to be sure you make the same mistakes again...