Ensuring the pluginPort for tests is a number < 65,536

The previous code created strings that were at least 20,000,000 which node then treated as file sockets. This makes failing tests slightly harder to debug because you can't just open the url in a browser.

This changes the time back into a number after slicing out a few digits.