adds basic test for the writeResponse method
adds content length to response if transfer-encoding is missing