Added AdminPortal unit tests