add new test case: switching