Add tests for scan_search