Return the readable port in $port.

Add a minor test for CLI situation.
Remove nonworking test that called method that does not exist.
closes issue #30