Fixed a panelSwitching test