Add test file plus CppUnit test