Bug fixe in test of databases