PortalKit: add a first jasmine testcase for testing Lifecycle