pwm_test code should be tested.