add tests to switchManager