Testing some C++ Code