updated test.c
Changed structure
test