testing

add test part for the cpp file.