added code to test fan PWM and current-resistor bypass