The "leaky" 3D C++ test code