Fixed DAO tests to work with preinitialized DB.