Test endpoint with curl