I`ve just edited post number #14 - hopefully I`ve finally cleared it up!

Yes, the earth pin just goes straight through, there is no connection to the circuit board. But the tester still connects to earth to do the testing, there is no test button on the plug in RCD.The E at the socket is derived from the N at the plugtop.

seems at some point water got inside.

Personally I would not make this lead, instead I would make two leads. One lead from a 13A plug to 4mm shrouded connectors and one from 4mm shrouded connectors to a 13A socket.Not good in the home or office but OK for this restricted lead but OK for a test lead by a competant person if used correctly for testing purposes only.

Personally I would not make this lead, instead I would make two leads. One lead from a 13A plug to 4mm shrouded connectors and one from 4mm shrouded connectors to a 13A socket.
Why? because if the lead you propose gets misplaced, then someone (including your future self) may mistake it for a regular extension lead. Then they may plug it into a travel adapter, or a circuit with a broken neutral or whatever and give themselves a shock.
Whereas a lead with 4mm shrouded connectors is far more obviously a piece of test equipment.
As a bonus the leads with 4mm connectors can be used for other things, like measuring the voltage at a socket, or performing an insulation resistance test on an appliance or making current measurements.
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local