Added more tests to PWM.
Removed errors