more unit tests (port taken & handshaking)