[tor-commits] [tor/master] Add unit tests for switch_id(), including tests for capabilities