Written test for dao and service.