[fix] MolecularFormula.__str__ is not deterministic, fixed test