finish search_queue and the single thread test