The tester itself is relatively simple to build ... is hooked together, the NPN/PNP pair causes the LED to light up, but the circuit is broken whenever one of the transistors is removed.
Here’s a simple FET circuit that lets you switch ... Speaking of the Pinecil, it uses an unorthodox driving circuit – it has an NPN transistor, but its base driven through a capacitor, so ...