Fixed test_database