added new spec test for portal.pp