Testing of correct wire connections in electrical apparatus and circuits