The pump should run when the heater is on and the engine is idling.
The pump should run on new models if the engine is turned off and the aux. fan runs to cool the engine.
The pump will run if the car has the option to keep the vehicle warm after the engine is shut off.
I don't know how all this happens.