clean commented code in the dialogue worker + fix test