updating tests to run proxy server on a random port to avoid conflicts on Travis CI