Added test case for pwm_gen_rand()