Add a test for the AuthenticationPrincipal support