Fix Postgres runtime_extended tests

- Fix an error with one of the connection tests
- Allow tests to reuse existing applications