Add APIError class to raise for API Errors
Change the search query for tests