Fix flaky test with path info checks

This test solely searched the entire URL for the status path, but it
ignored the fact that a random port could contain the status code too.
1 file changed