Tidied-up logic in check_pwm_tests. removed duplicated tests