create some dummy unit test in absence of jinja2
move some inline functions to .cpp