fix an issue of nightly build error
- add sleep to 'Scenario: kill a switch'