Add a pwm test case.