add solution for custom twig function and test

add sleep tag solution