add test_switch with rt-app