switch_test.c added