HTTP 1.1 spec does allow the client to specify Connection: Keep-Alive, but the server has a choice whether or not to really keep the connection alive. Also even the two sides agree upon this, the connection still can be dropped for various reasons.
One part of his test has to be conducted from the server side, somethiong like a counter of connections.