Don't check twice

The current test checks twice for the same port number.