fix scripts for search testing