fix switch_to test.
Also, don't switch back after switching.