implement getLatestFormTemplate
add test about esdb WIP