PermissionHandler tests updated