[tor-commits] [metrics-lib/master] Add tests for Descriptor methods. Implements task-22912.