test_switch.py workingls