Switching Activity Based Method for Minimizing Testing Power in Digital Circuits