added tests for PortalLoader