Testing the ground of a circuit