test_database: improve coverage