Added: tests for database module.