added testcase for switch2