Solution for custom twig function & test & tag