test harness: nonzero exit if the the tests didn't pass
tests: fix running with tox + random ports