Fixed connection leak, updated test to use pool - which reveals leak