Marx however never tried to make exact scientific predictions in the lines of psychohistory. He made behavioral philosophical predictions (so did Adam Smith and many others, and all sorts of people of various political alignments still do).
It's a nitpick. I definitely don't want to discuss semantics related to "isms".
Did Asimov flirted with communist ideas? I definitely think he portrayed similar ideas in Foundation, but I cannot say he endorsed them. Take the idea of individuals being able to shape the history (as opposed to the state being the vehicle for change). That is definitely not communist thinking.