Testing the earth is straight forward, pick a good earth in that area and test for continuity accross the ecu plug.
For the positive for the ecu, check through the fuses for an engine fuse, once located, check using the same earth you had in the bodywork (key on position) and sweep the ecu plug...