fix missing unittests for agent_dao