Twig function unit tests added