rename function as hattrie_tryget_longest_match(), tweak implementation, and let make check fail if error happens in "make check"