Beginnings of a unit test for ParseModeString.
Merge pull request #1732 from vohi/test/parsemodestring

Beginnings of a unit test for ParseModeString.