The correct option is D Last month I went to the chocolate factory twice.
Since the sentence begins with "Last month", the sentence is in the past tense. The past perfect verb form to be used in this case is "went" which is correctly used in Option B.