Fixing bug on retry after and testing retry after part in gcm_api_test.