add test.c

fix this method!