Custom tests support added similar to custom filters

Support for Jinja2 custom tests. Configure like custom filters, e.g.:

    jinja2:
      filters:
        fnmatch: fnmatch.fnmatch    
      tests:
        fnmatch: fnmatch.fnmatch