Implemented DAO tests

- implemented DAO tests