Fix bug in aho. Add test on template adding
Tests for MetaTemplates