Tests: In stateserver tests use a pool of connection instead of new connections for every test.