test: redirect comparison tool output to stdout

Otherwise travis thinks the build has stalled.
test: don't let the port number exceed the legal range
Merge pull request #4612

6548cc9 test: don't let the port number exceed the legal range (Cory Fields)
a67eef1 test: redirect comparison tool output to stdout (Cory Fields)