C++ test programs