Test code for switching between panes, with delay, added