writing tests for customer search api