Flush connections to avoid non-deterministic tests

The build is failing because one unit test depends on the connection pool. This pool get's flushed before that specific test to avoid non-deterministic results.