Update test.c

add code