added getter for PWM config + unit test