Don't check twice

The current test checks twice for the same port number.
Merge pull request #413 from yaronyg/patch-12

Don't check twice