Fixed test database error