LPS-49448 move stub permission checkers out of portal-test

Remove circular dependency between portal-test and portal-impl by moving
these classes into portal-test-internal.