tests: use sockets properly
components: use new port API
Merge pull request #8 from djdeath/new-port-api

New port api