testing api_client.GetToken with stub