upgrade dialogue woker consume event test
upgrade unit test of dialogue worker + refactor code from worker to history_manager
upgrade dialogue worker + refactor code to history manager