Database unit tests.