test: Add tests for port opening, name publishing, and accept/connect