tests : convert most remaining tests to inline templates

Convert all except the test_template_format test to minimal
inline templates

Change-Id: I73f263d3d7d24eaa2c20eed171b7486cfa873f9a