mv test to main.c