Test case for connection pooling issue