Add default port from CLI

* added a default port of 8020
* corrected tests