If you clip the test light to the ground lug on The back of the switch, turn the switch to dome light, and then the test light to 12 volts positive, will the test light,light up ? If not, and you put the new switch in, the switch may not have a good ground.
On the orange and black connector I can only guess it comes from a fuse in the fuse block.( The fuse was checked , correct) The black wire is ground, so if you hooked that with the ground to the Courtesy lights. ( assuming you find the ground problem) and then the positive ( orange wire) to a 12 volt source in the fuse block all the lights should work. Just check with your test light for a source in the block. I believe the clock (clk) is always on.
For temporary connections I use a length of wire, stripped back and push it in where the existing wires go in.
1957 WILLYS pickup,
1973 J 4000,
1978 CJ7 DD.
1979 CJ7 360, TH400/Quadratrac.
1980 CJ5 trail Jeep.
1989 YJ the CJ to YJ.