[tor-commits] [stem/master] Tidying up event testing boilerplate