update test.c for my project