adding test of optimum_search