The ULN2003 chip without Pins 8 and 9 ?

Pin 9 would go to the plus supply that powers your inductive loads.

If it where to be connected to GND, the loads would turn on, hence the application as a lamp test.