Add test for NotAuthenticatedPermission

Signed-off-by: Simon Luijk <simon@simonluijk.com>