updated tests for pwm