Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections