Fix root template; add unittest for transaction API
Fix types in request template