fix bugs for ConnectionPool Unit Test