add version, template and fix data type in tests