Does this really need to be an integration test? I'd have thought it would work offline; and we can find some ports that are free + accessible from localhost?