Fixes to tntbuild, unit test for http req. res.