segregated testcases in TC 40.140.

Testcase 40.140
add the code to clear the switch state.