AhoCorasickMatch UDF with unit tests