Test endpoint, better handling for multiple searches