Fix SEARCH function with test cases

Update SEARCH function to return error.value when find_text is not found.