added some tests for dao and services