fix scan_search method
add spec for scan_search