Add test dir. Add the test dir for cppunit and fix some tiny mistakes.