Peak Power Consumption During Scan Testing: Issue, Analysis and Heuristic Solution