Fix test dependant on ordering

If you run the full test suite then the functional tests typically
execute before the unit tests. Because POTENTIAL_HTTP_PORTS is never
reset then there will be an entry for port 8888 in the list which means
the test checking for ONLY the expected ports will fail.