add test file for main.cpp