Fix another TODO in the unit test
Add content length and type to the Lua environment