TST/BUG: Add ensemble MSD tests; make emsd more robust w.r.t input sorting.