Memory database tests.