Fixed DB tests.