Fixed re.search mocking