Testing of electronic protection circuits