add main.c to test