test more connection pool return paths

I was concerned about a path where a connection pool reference got
nilled and a connection returned to a missing pool would leak.  I don't
think this is likely, but I test for the cases specifically and verify
the connection gets closed.