[test][databases] Ensure Database object is correctly created

This allows to more easily understand why the test fails if
the database object encounters error on creation.
6 jobs for improve_database_testing in 26 minutes and 32 seconds (queued for 4 seconds)