Tests for DB module.