corrected pwm test