add main.cpp for test entry