added unit-tests to check the setting of content-length with strings and buffers