add cppunit tests