Lps 50049 pt1

Portal service unit tests and portal impl.