DEV: prevents toolbar callbacks to leak between tests (PR #9403)

GitHub