Adding tests for search endpoint.