add main function in test.c