test cases for dao and presistence added