Unit test for connection leak tracing
