Add test for localized search, fix failures.