Refactor the Core of LocaleManager, test it
Add some tests to the OsisParser
Testing state machines can be difficult if it's not black box...