How do you test the vacuum pump on a 1997 7.3 diesel?

easiest way to test vacuum pump is ,

with engine off, pump brake pedal until pedal goes hard

keep pressure on brake pedal and start engine

if vacuum pump is good, you will feel the brake pedal go softer so you don't have to use as much effort for pedal to be depressed