more robust and configurable tests, passing cleanly with SSL and non-SSL postgreSQL storage layer