add unittest.cpp
add unitest.cpp