[tor-commits] [onionperf/master] Removes unecessary raise and adds unit tests to validate behaviour