Test if token is granted by its groups.