Switch is testing probes, both diode and resistor is for simulating different measure.
Transistor works like switch so not needed to use any switch for battery. With potetiometer you can set maximum resistence of testing circuit.
Coil is used only for testing purposes.