add test for search threshold