fixed esgsearch, changed esgsearch process, update tests