Add test for api_timeout.