Improve connection pool tests

These methods in ConnectionPool were incompletely covered so here are some more tests.

Please double check @0e2f44f because it changes the implementation to not raise an exception when the user is doing things they shouldn't.