test the length of the response as well
fix realloced memory access
add proxy with keep-alive tests