fixed test after refactoring control pane close function