Fixed database tests.