BandwidthTestHandler: small bugfixes to comparisons
Spotted a couple of handler issues in testing here.
Fixes:
- Protect against ZeroDivError in comparions
- Improve comparison msg
- protect against weird python scoping of variables
Tested locally that all works well with the results from that CI test pointed to in the link above.