test diandian template encoding