Added more unit tests and added a get method to the dao.