Remove test code from API client.