adding another test for the code that renew too long connections

I coded the patch for renewing idle connections.

While the code for renewing too long connections is not mine, I found testing it was similar and then, I coded the corresponding test. Here it is.