pwm fixes
pwm testbench