[tor-commits] [stem/master] Move test requirement functions to util