Fix test failure for portal module