add test.c

why add this method