Tests for AuthorizationHelper methods