Implemented one test.
Cleanup, make ports and uri private.