add test file main.cpp