Adding tests to panelSwitching module