Fix testing with PostgreSQL using too much connection issue