test token check and add to service provider