add test for MetaTemplate