Adding a few testCases and fuinctions in DAO