Fixing togglePanel tests