Add extra tests for template tags
get_element_class speed test
Speed up the functions
Fix jinja tags folding