Added GetPortal() and started a unit tests.