Fix failing tests and add some default connection parameters.