Added fix for #300 and simple test.
Slightly more powerful test of trim_states
Merge pull request #301 from SimTk/msmlibfix

Added fix for #300 and simple test.