A modular wiring system includes a junction box having a plurality of ports and a programmable wiring board carrying electrically conductive elements. The testing device provides bi-directional electrical communication with a device to be monitored and automatically provides a connection configuration between a processing unit and a set of inputoutput ports. The glass lens comprises a cavity at least reducing heat conduction towards the at least one light source.