[tor-commits] [tor/maint-0.3.1] Add unittest for #23233.