tests on search with more debugging