Beginnings of a unit test for ParseModeString.

(cherry picked from commit a98f4f19eccf8b47a047b4a7b9008920d8ff1981)