The present invention provides a circuit interrupting device, preferably a ground fault circuit interrupter (GFCI), which contains a dual-function test button having a short pole and a long pole positioned underneath the dual-function test button. When the GFCI is properly wired and powered, a depression of the dual-function test button allows the short pole to operatively connect to a conductive pin and generate a leakage current to test the components of the GFCI. If all of the components are functioned properly, the GFCI can be reset. If not, the GFCI cannot be reset. When the GFCI is miswired or reverse wired and not powered, a depression of the dual-function test button does not test the components of the GFCI. However, a further depression of the dual-function test button allows the long pole presses against a tripping lever on a locking member in a tripping device which mechanically trip the GFCI. The present invention further provides an end-of-life detection circuit which can automatically generates a simulated leakage current to test the components in the GFCI. If one or more components are not functioned properly, the end-of-life circuit prevents the GFCI from resetting.